package rpc


import (
	//	"fmt"
	"log"
	//	"net"
	"net/http"
	"net/rpc"

	"gitee.com/lzqysoft/framework/services/base/service"
)

func StartRpcServer() {
	arith := new(service.Arith)
	rpc.Register(arith)
	rpc.HandleHTTP()

	err := http.ListenAndServe(":8001", nil)
	if err != nil {
		log.Fatal(err)
	}
}
